package com.mc.music_web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Locale;

@Controller
public class ChangeController {
    @RequestMapping("/toEnglish")
    public String firstEn(Locale locale){
        return "admin/login";
    }

    @RequestMapping("/toChinese")
    public String firstCn(Locale locale){
        return "admin/login";
    }

    @RequestMapping("/toEnglishS")
    public String firstUEn(Locale locale){
        return "user/userLogin";
    }

    @RequestMapping("/toChineseS")
    public String firstUCn(Locale locale){
        return "user/userLogin";
    }

    @RequestMapping("/toEnglishR")
    public String firstUEnR(Locale locale){
        return "user/register";
    }

    @RequestMapping("/toChineseR")
    public String firstUCnR(Locale locale){
        return "user/register";
    }
}
